﻿using Prism.Mvvm;
using System.Collections.ObjectModel;

namespace wpf.prism.Models
{
    public class NavigationItem : BindableBase
    {
        public NavigationItem(
           string icon,
           string key,
           string name,
           string pageName,
           ObservableCollection<NavigationItem> items = null)
        {
            Key = key;
            Icon = icon;
            Name = name;
            PageName = pageName;
            Items = items;
        }

        private ObservableCollection<NavigationItem> items;

        public ObservableCollection<NavigationItem> Items
        {
            get { return items; }
            set { items = value; RaisePropertyChanged(); }
        }


        private string icon;

        public string Icon
        {
            get { return icon; }
            set { icon = value; RaisePropertyChanged(); }
        }


        private string key;

        public string Key
        {
            get { return key; }
            set { key = value; RaisePropertyChanged(); }
        }


        private string name;

        public string Name
        {
            get { return name; }
            set { name = value; RaisePropertyChanged(); }
        }

        private string pageName;

        public string PageName
        {
            get { return pageName; }
            set { pageName = value; RaisePropertyChanged(); }
        }
    }
}
